//
//  ViewOfContact.m
//  王宇先_10
//
//  Created by wyx on 16/3/22.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ViewOfContact.h"

@interface ViewOfContact ()
@property (nonatomic, retain) UILabel *lableOfContactName;
@property (nonatomic, retain) UILabel *lableOfContactPhone;
//@property (nonatomic, copy)NSString *contents;
@end

@implementation ViewOfContact
-(void)dealloc{
    [_lableOfContactPhone release];
    [_lableOfContactName release];
    [_contentName release];
    [_contentPhone release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createLable];
    [self configForNavigationItem];
    
}
- (void)createLable{
    /** 姓名 */
    UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(50, 200, 50, 50)];
    name.text = @"姓名:";
    [self.view addSubview:name];
    [name release];
    self.lableOfContactName = [[UILabel alloc] initWithFrame:CGRectMake(100, 200, 200, 50)];
    self.lableOfContactName.backgroundColor = [UIColor whiteColor];
    //赋值
    self.lableOfContactName.text = self.contentName;
    [self.view addSubview:self.lableOfContactName];
    [_lableOfContactName release];
    /** 电话 */
    UILabel *phone = [[UILabel alloc] initWithFrame:CGRectMake(50, 300, 50, 50)];
    phone.text = @"电话:";
    [self.view addSubview:phone];
    [phone release];
    self.lableOfContactPhone = [[UILabel alloc] initWithFrame:CGRectMake(100, 300, 200, 50)];
    self.lableOfContactPhone.backgroundColor = [UIColor whiteColor];
    //赋值
    self.lableOfContactPhone.text = self.contentPhone;
    [self.view addSubview:self.lableOfContactPhone];
    [_lableOfContactPhone release];
}
- (void)configForNavigationItem{
    //中间title
    self.navigationItem.title = @"联系人详情";
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
